#include <SimpleAmqpClient/SimpleAmqpClient.h>
#include <iostream>
int main(){
    // 建立和rabbitmq的连接
    AmqpClient::Channel::ptr_t channel = AmqpClient::Channel::Create();
    // 创建一个消息
    AmqpClient::BasicMessage::ptr_t message = AmqpClient::BasicMessage::Create("hello,world!");
    // 发布消息
    channel->BasicPublish("58-file-exchange","file",message);
    std::cout << "message is sent\n";
}